<script type="text/javascript" src="js/dhtmlgoodies_calendar.js"></script>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/extremecomponents.tld" prefix="ec" %>
<%@taglib uri="http://ajaxtags.org/tags/ajax" prefix="ajax"%>
<%@page import="jmc.ui.front.form.ABMPdiForm"%>
<%@page import="jmc.core.model.reports.Inventario"%>

<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
		<META HTTP-EQUIV="Expires" CONTENT="-1">
		<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
		<META HTTP-EQUIV="Expires" CONTENT="-1">

		<link href="<%=request.getContextPath()%>/css/general.css" rel="stylesheet" type="text/css" />
		<link href="<%=request.getContextPath()%>/css/defaultForm.css" rel="stylesheet" type="text/css" />
		<link href="<%=request.getContextPath()%>/css/extremecomponents.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/message.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/formUtilit.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/appletClass.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/certificatesToken.js"></script>		
		
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax.js"></script>		
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/tab.js"></script>		
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/rico/rico.js"></script>		
		<title><tiles:getAsString name="title"/></title>
		<script type="text/javascript">
		
		// Messages and buttons
		var missingFieldsMessage = "<bean:message key="error.missingFields"/>";
		var onlyNumberFieldsMessage = "<bean:message key="error.onlyNumberFields"/>";
		var emailFieldsMessage = "<bean:message key="error.emailFields"/>";
		var dateFieldsMessage = "<bean:message key="error.dateFields"/>";
		var generalFillFieldsMessage = "<bean:message key="error.generalFillFields"/>";
		var buttonOk = "<bean:message key="button.ok"/>";
		var buttonCancel = "<bean:message key="button.cancel"/>";
		var buttonYes = "<bean:message key="button.yes"/>";
		var buttonNo = "<bean:message key="button.no"/>";

		</script>
</head>
<link href="<%=request.getContextPath()%>/css/ajax/ajaxtags.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/ajax/displaytag.css" rel="stylesheet" type="text/css" />
<link href="css/dhtmlgoodies_calendar.css" rel="stylesheet" type="text/css">

<!-- Init menu de acciones de operador -->

				<fieldset class="defaultFieldset" style="margin: 0%;width: 100%; height: 100%;"  >
				
				<html:form action="/abmPdi.do?method=preparedListoPrefacturacionPage" styleId="listPrefacturacionForm">
					
				<label class="label_50 field" style="font-family: Arial; font-size: 14">Unidades Procesadas (Periodo y Sector)</label>
				
				<div class="separator"></div>

  				<input type="hidden" name="secuencia" value="<bean:write name="abmPdiForm" property="secuencia"/>" />
  				  			
    			<bean:define name="abmPdiForm" id="prefacturacionList" property="prefacturacionList"/>

				<% int num = ((ABMPdiForm)request.getAttribute("abmPdiForm")).getPrefacturacionList().size();
					if (num==0){  %>
					<div class="noDataMessage">No hay Lista de Prefacturacion a mostrar con los parametros ingresados</div>
				<% } else { %>
					<ec:table
						tableId="notReg" 
				    	items="prefacturacionList"
						var = "prefacturacion"
						locale="es_ES"
						action="abmPdi.do?method=preparedListoPrefacturacionPage"
						imagePath="images/table/*.gif"
						width="100%"
						rowsDisplayed="40"
						form= "listPrefacturacionForm" >
						<ec:exportXls view="xls" fileName="prefacturacion.xls" tooltip="Export Excel"/>
						<ec:row>																
								<ec:column filterable="true" sortable="true" width="40px" property="wxmode" title="Mode" >
									<span>${prefacturacion.wxmode}</span>
								</ec:column>
								<ec:column filterable="true" sortable="false" width="150px" property="wxdemo" title="Descripcion" >
									<span>${prefacturacion.wxdemo}</span>
								</ec:column>
								<ec:column filterable="false" sortable="true" width="200px" property="wxob20" title="Obs" >
									<span>${prefacturacion.wxob20}</span>
								</ec:column>
								
								<ec:column filterable="false" sortable="true" width="60px" property="wxfech" title="Fecha Egreso" viewsDenied="html"/>
								
								<ec:column filterable="false" sortable="true" width="60px" property="formatedWxfech" title="Fecha Egreso" viewsDenied="xls">
									<span>${prefacturacion.formatedWxfech}</span>
								</ec:column>
								
								<ec:column filterable="false" sortable="true" width="60px" property="wxcare" title="Cantidad" />
								
								<ec:column filterable="false" sortable="false" width="60px" property="wxvin" title="VIN">
									<span>${prefacturacion.wxvin}</span>
								</ec:column>
						</ec:row>
					</ec:table>
					<jsp:include page="../add_on/tableHints.jsp"/>
				<% } %>	
			
			</html:form>
			</fieldset>
	
</div>
<script type="text/javascript">


</script>